$(function(){
	 $("button#statBtn").bind("click",function(){
		 loadPage(0);
	  });
	  
	
	 $("div.pagination ul li a").bind("click",function(){
		  if($(this).hasClass("noclick"))return;
	      loadPage(this.page);
	 });
});

function loadPage(page){
	 var data = $("form#statform").serialize();
     doGet("maintainability/maintainability!stat",data+"&page="+page+"&rows=10");
}